home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula 2
/
Nebula Two.iso
/
SourceCode
/
Tutorial
/
Cookbook
/
15.scrollView
/
DocView.m
< prev
next >
Wrap
Text File
|
1995-06-12
|
409b
|
28 lines
#import "DocView.h"
#import <appkit/Control.h>
#import <dpsclient/wraps.h>
@implementation DocView
+newFrame:(const NXRect *)tF
{
self = [super newFrame:tF];
return self;
}
- drawSelf:(NXRect*)r :(int)c
{
PSsetgray(1.0);
NXRectFill(r);
PSsetgray(0.0);
PSsetlinewidth(4.);
PSnewpath();
PSmoveto(50.0, 50.0);
PSlineto(200.0, 400.0);
PSstroke();
return self;
}